package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

/**
 * 药铺：体力日志
 */
@FieldTypeAnnotation(tableName = "t_l_ck_drug_store_energy", desc = "药铺体力日志", autoSave = true, uploadCk = true)
public class LogDrugStoreEnergy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "类型：1 自然恢复，2 道具恢复  3 接待消耗")
    private int type;

    @FieldTypeAnnotation(desc = "变更前体力")
    private int beforeNum;

    @FieldTypeAnnotation(desc = "变更数量")
    private int num;

    @FieldTypeAnnotation(desc = "变更后体力")
    private int afterNum;

    public LogDrugStoreEnergy(long userId, int type, int beforeNum, int num, int afterNum) {
        this.userId = userId;
        this.type = type;
        this.beforeNum = beforeNum;
        this.num = num;
        this.afterNum = afterNum;
    }

    public long getUserId() {
        return userId;
    }
}
